<template>
	<view class="content">	
		<MyTitle :yonghuwx="yonghuwx" :show="show"></MyTitle>
		<ListContent></ListContent>
	</view>
</template>

<script>
	import MyTitle from "../../components/myComponents/myTitle.vue"
	import ListContent  from "../../components/myComponents/listContent.vue"
	export default {
		data() {
			return {
				yonghuwx:{},
				show:true
			};
		},
		onShow(){	
			let that=this;
			uni.getStorage({
			  key: "openid",
			  success: function (res) {
			    // console.log("已登录");
					that.show=false;
					uni.getStorage({
						key:"userInfo",
						success: function (res) {
									that.yonghuwx=res.data; 
						},
						fail: function (rej) {
								that.show=true;
						}
					})
			  },
			  fail: function (rej) {
						that.show=true;
				}
				})
		},
		components:{
			MyTitle,
			ListContent
		}
	}
</script>

<style lang="scss">
.content{
	width: 100%;
}
</style>
